Skip to content

Conversation

@dguenther
Copy link
Contributor

This PR extends the tidy formatting check to rust files in the test folder. To facilitate this, a few flags were added to tidy:

  • xfail-tidy-cr - Disables the check for CR characters for all following lines in the file
  • xfail-tidy-tab - Disables the check for tab characters for all following lines in the file
  • xfail-tidy-linelength - Disables the line length check for all following lines in the file

Checks should not have to be disabled often. I disabled line length checks in debug-info tests that use debugger: checks, but aside from that, there were relatively few exclusions. Running tidy on all the tests does slow down the formatting check, so it may be worth investigating further optimization.

cc #4534

@dguenther
Copy link
Contributor Author

Merging failed, so I rebased onto master. r? @brson

bors added a commit that referenced this pull request Feb 7, 2014
This PR extends the tidy formatting check to rust files in the test folder. To facilitate this, a few flags were added to tidy:

* `xfail-tidy-cr` - Disables the check for CR characters for all following lines in the file
* `xfail-tidy-tab` - Disables the check for tab characters for all following lines in the file
* `xfail-tidy-linelength` - Disables the line length check for all following lines in the file

Checks should not have to be disabled often. I disabled line length checks in `debug-info` tests that use `debugger:` checks, but aside from that, there were relatively few exclusions. Running tidy on all the tests does slow down the formatting check, so it may be worth investigating further optimization.

cc #4534
@bors bors closed this Feb 7, 2014
@bors bors merged commit 730bdb6 into rust-lang:master Feb 7, 2014
@dguenther dguenther deleted the tidy_test branch February 7, 2014 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants